package com.aspose.cells;

class zfy implements LightCellsDataHandler {
   private CellHandler a;
   private LightCell b = new LightCell();
   private int c;
   private String d;

   zfy(CellHandler var1, int var2) {
      this.a = var1;
      this.c = var2;
   }

   zfy(CellHandler var1, String var2) {
      this.a = var1;
      this.c = -1;
      this.d = var2;
   }

   public boolean startSheet(Worksheet sheet) {
      if (!this.a.startSheet(sheet.getIndex())) {
         return false;
      } else if (this.c > -1 && this.c != sheet.getIndex()) {
         return false;
      } else {
         return this.d == null || this.d.equals(sheet.getName());
      }
   }

   public boolean startRow(int rowIndex) {
      this.b.b = rowIndex;
      return true;
   }

   public boolean processRow(Row row) {
      return true;
   }

   public boolean startCell(int column) {
      return this.a.startCell(this.b.b, column);
   }

   public boolean processCell(Cell cell) {
      this.b.a(cell);
      this.a.process(this.b);
      return false;
   }
}
